<?php
//print_r($data);
//echo "sfsfdsfsdf";
foreach ($data as $value) 
{
	echo '<div class="event-item item-selected" style="height:80px">';
	echo '<img class="event-photo img-polaroid" style="float:left;" src="'.img($value['path']).'">';
	echo '<div style="float:left;width:220px;">';
	echo '<span class="event-title">'.$value['nom'].'</span><br/>';
	echo '		<span class="event-desc">'.$value['descriptif'].'</span>';
	echo '					</div>';
	echo '	<div style="clear:both"></div>';
	echo '</div>';
	echo '<script>';
	echo 'var pos'.$value['id'].' = new google.maps.LatLng('.$value['lat'].','.$value['lng'].');';
	
	echo 'var marker'.$value['id'].' = new google.maps.Marker({';
    echo ' position: pos'.$value['id'].',';
    echo '  map: map,';
      
  echo '});';
	echo ' arrayMarker.push(marker'.$value['id'].');';
	echo 'var content = "<h3>'.$value['nom'].'</h3>"+"<br>"+"'.$value['descriptif'].'";';
	echo 'setInfo(marker'.$value['id'].',content);';
  echo '	</script>';
}


?>